import request from '@/utils/request'

// 查询名片详情列表
export function listMpcard(query) {
  return request({
    url: '/bcard/mpcard/list',
    method: 'get',
    params: query
  })
}

// 查询名片详情详细
export function getMpcard(businessCardId) {
  return request({
    url: '/bcard/mpcard/' + businessCardId,
    method: 'get'
  })
}

// 新增名片详情
export function addMpcard(data) {
  return request({
    url: '/bcard/mpcard',
    method: 'post',
    data: data
  })
}

// 修改名片详情
export function updateMpcard(data) {
  return request({
    url: '/bcard/mpcard',
    method: 'put',
    data: data
  })
}

// 删除名片详情
export function delMpcard(businessCardId) {
  return request({
    url: '/bcard/mpcard/' + businessCardId,
    method: 'delete'
  })
}
